//
//  DHADDetailViewController.m
//  Dresshere
//
//  Created by ZhangPeng on 2018/1/2.
//  Copyright © 2018年 张朋. All rights reserved.
//

#import "DHADDetailViewController.h"

@interface DHADDetailViewController ()

@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation DHADDetailViewController

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.titleLabel.text = @"广告详情";
    
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
    
//    [self.backButton setImage:[UIImage imageNamed:@"home_close"] forState:UIControlStateNormal];
}

- (void)backAction{
//    [self dismissViewControllerAnimated:YES completion:nil];
    if ([Login isLogin]) {
        [kAppDelegate configHomeController];
    }else{
        [kAppDelegate configLoginController];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
